package com.kehutong.charge.service;

import com.kehutong.charge.entity.ChargeOrderConfig;
import com.kehutong.charge.entity.ChargeOrderManage;
import com.kehutong.charge.service.impl.ChargeOrderServiceImpl;
import com.kehutong.common.util.Token;
import org.coraframework.inject.ImplementedBy;
import org.coraframework.json.JSONObject;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @program: kht
 * @description: 缴费订单管理服务接口
 * @author: joneron
 * @create: 2021/7/5
 **/
@ImplementedBy(ChargeOrderServiceImpl.class)
public interface ChargeOrderService extends BaseService<ChargeOrderManage>{

    /**
     * 获取数据
     */
    ChargeOrderManage findOrderDetail(JSONObject jsonObject);


    void pageExport(HttpServletRequest req, HttpServletResponse resp, JSONObject jsonObject) ;


    /**
     * 支付生成订单(手机端)
     */
    Object submitBillPay(JSONObject jsonObject, Token token);


    /**
     * 订单配置,增加、删除、查询、修改
     */
    Object findConfigPage(JSONObject jsonObject);

    /**
     * 保存
     */
    Object saveConfig(ChargeOrderConfig config);

    /**
     * 修改
     */
    Object updateConfig(ChargeOrderConfig config);

    /**
     * 删除
     */
    Object delConfigById(String id);

}
